package com.cl.pattern.memento.basic;

/**
 * @ClassName Caretaker
 * @Description 备忘录管理员角色
 * @Author Small
 * @Date 2020/7/9 10:24
 * @Version 1.0
 **/
public class Caretaker {
    /**
     * 备忘录对象
     */
    private Memento memento;



    public Caretaker(){}

    public Caretaker(Memento memento) {
        this.memento = memento;
    }

    public Memento getMemento() {
        return memento;
    }

    public void setMemento(Memento memento) {
        this.memento = memento;
    }
}
